package com.wyc.apidriver.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("service-sse-push")
public interface SsePushFeignClient {

    /**
     * 发送消息
     * @param userId 消息接收者
     * @param identity 接收者身份标识
     * @param content 消息内容
     * @return
     */
    @RequestMapping("/push")
    String push(@RequestParam("userId") String userId, @RequestParam("identity") String identity, @RequestParam("content") String content);

}
